package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * sku表
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Skus对象", description="sku表")
public class Skus implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuid;

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "编号")
    private String number;

    @ApiModelProperty(value = "封面")
    private String thumb;

    @ApiModelProperty(value = "价格")
    private Integer moneyPrice;

    @ApiModelProperty(value = "价格")
    private Integer scorePrice;

    @ApiModelProperty(value = "价格")
    private Integer discountMoneyPrice;

    @ApiModelProperty(value = "价格")
    private Integer discountScorePrice;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "重量，单位为g")
    private Integer weight;

    @ApiModelProperty(value = "属性数组")
    private String attrs;

    @ApiModelProperty(value = "锁定库存")
    private Integer cachedStock;

    @ApiModelProperty(value = "0为下回中   1为上架中")
    private Integer status;

    @ApiModelProperty(value = "兑换次数")
    private Integer coverChipCount;

    @ApiModelProperty(value = "所需碎片数量")
    private Integer coverChipTotal;

    @ApiModelProperty(value = "碎片ID")
    private Integer coverChipId;

    @ApiModelProperty(value = "碎片兑换开关")
    private Boolean coverChipStatus;

    private Date deletedAt;

    private Date createdAt;

    private Date updatedAt;

    @ApiModelProperty(value = "成本价")
    private Integer costMoneyPrice;


}
